00001 /* 00002 * Copyright (c) 2013 Battelle Memorial Institute 00003 * Licensed under modified BSD License. A copy of this license can be found 00004 * in the LICENSE file in the top level directory of this distribution. 00005 */ 00006 // Emacs Mode Line: -*- Mode:c++;-*- 00007 /** 00008 * @file simple_adjacency.hpp 00009 * @author William A. Perkins 00010 * @date 2013-07-08 12:08:32 d3g096 00011 * 00012 * @brief An inline function for creating a simple AdjacencyList instance 00013 * 00014 * 00015 */ 00016 00017 00018 00019 #ifndef _simple_adjacency_hpp_ 00020 #define _simple_adjacency_hpp_ 00021 00022 #include "graph_partitioner.hpp" 00023 00024 /// Make (allocates) AdjacencyList that represents a simple linear network 00025 gridpack::network::AdjacencyList * 00026 simple_adjacency_list(const gridpack::parallel::Communicator& comm, 00027 const int& global_nodes); 00028 00029 /// Make (allocate) a partitioner for a simple linear network 00030 gridpack::network::GraphPartitioner * 00031 simple_graph_partitioner(const gridpack::parallel::Communicator& comm, 00032 const int& global_nodes); 00033 00034 00035 #endif